package com.example.demo.service;

import com.example.demo.entity.Event;
import com.github.pagehelper.PageInfo;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression.DateTime;
import org.springframework.web.bind.annotation.RequestParam;
import jakarta.servlet.http.HttpSession;

import java.util.Date;
import java.util.List;

public interface EventService {
    PageInfo<Event> list();
    PageInfo<Event> listByParams(Integer currentPage, Integer pageSize,
                                 String startDate, String endDate);

    int addEvent(Event event, HttpSession session);

    boolean changeEvent(Event event);

    Event getEventById(Integer id);

    boolean deleteEventById(Integer id);

    void updateStatus(Integer id);
}
